package net.hcpme.util;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

import android.content.Context;
import android.util.Log;

public class Common {

    private static final String TAG = "[Hcpme]Common";

    public static String getPropertie(Context context, String key) {
        String value = "";
        Properties props = new Properties();
        try {
            props.load(context.openFileInput("default.properties"));
            value = props.getProperty(key);
        } catch (FileNotFoundException e) {
            Log.e(TAG, "default.properties Not Found Exception", e);
        } catch (IOException e) {
            Log.e(TAG, "default.properties IO Exception", e);
        }
        return value;
    }
}
